// 应用中心的通话相关配置页面
export const appCenter = [
  {
    path: 'caller',
    name: 'caller',
    meta: {
      title: '访客端',
      group: 'setup',
      roles: ['01_040']
    },
    component: () => import(/* webpackChunkName: "config" */ '@app/call-center/views/app-center/caller/index.vue'),
    children: [
      {
        path: 'caller_setting',
        name: 'caller_setting',
        meta: {
          roles: ['01_041']
        },
        component: () => import('@/app/call-center/views/app-center/caller/components/caller-setting.vue')
      },
      {
        path: 'caller_state',
        name: 'caller_state',
        meta: {
          roles: ['01_042']
        },
        component: () => import('@/app/call-center/views/app-center/caller/components/caller-state.vue')
      }
    ]
  },
  {
    path: 'client',
    name: 'client',
    meta: {
      title: '客服端',
      group: 'setup',
      roles: ['01_043']
    },
    component: () => import(/* webpackChunkName: "config" */ '@app/call-center/views/app-center/client/index.vue'),
    children: [
      {
        path: 'client_setting',
        name: 'client_setting',
        meta: {
          roles: ['01_044']
        },
        component: () => import('@/app/call-center/views/app-center/client/components/client-setting.vue')
      },
      {
        path: 'client_state',
        name: 'client_state',
        meta: {
          roles: ['01_045']
        },
        component: () => import('@/app/call-center/views/app-center/client/components/client-state.vue')
      }
    ]
  },
  {
    path: 'call_router',
    name: 'call_router',
    meta: {
      title: '呼叫路由',
      group: 'setup',
      meta: {
        roles: ['01_046']
      }
    },
    component: () => import(/* webpackChunkName: "config" */ '@app/call-center/views/voice-index.vue'),
    children: [
      {
        path: 'number_manage',
        name: 'number_manage',
        meta: {
          roles: ['01_047']
        },
        component: () => import('@app/call-center/views/number-manage/index.vue')
      },
      {
        path: 'explicit_rules',
        name: 'explicit_rules',
        meta: {
          roles: ['01_058']
        },
        component: () => import('@app/call-center/views/number-manage/index.vue')
      },
      {
        path: 'regional_group',
        name: 'regional_group',
        meta: {
          roles: ['01_063']
        },
        component: () => import('@app/call-center/views/number-manage/index.vue')
      },
      {
        path: 'voice_nav',
        name: 'voice_nav',
        meta: {
          roles: ['01_068']
        },
        component: () => import('@app/call-center/views/voice-nav/index.vue')
      },
      {
        path: 'voice-library',
        name: 'voice-library',
        meta: {
          roles: ['01_075']
        },
        component: () => import('@app/call-center/views/voice-library/index.vue')
      }
    ]
  },
  {
    path: 'statistical_rules',
    name: 'statistical_rules',
    meta: {
      title: '统计规则',
      group: 'setup'
    },
    component: () =>
      import(/* webpackChunkName: "config" */ '@/app/call-center/views/app-center/statistical-rules/index.vue')
  },
  {
    path: 'call_center',
    name: 'call_center',
    meta: {
      title: '呼叫中心',
      group: 'call'
    },
    component: () => import(/* webpackChunkName: "config" */ '@app/call-center/views/app-center/call-center/index.vue')
  },
  {
    path: 'call_record',
    name: 'call_record',
    meta: {
      title: '通话记录',
      group: 'callrecord'
    },
    component: () => import(/* webpackChunkName: "callRecord" */ '@app/call-center/views/call-record/index.vue')
  }
]
// 其他通话配置相关的路由，可以再额外定义
